

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>llvm-pdbutil - PDB File forensics and diagnostics &#8212; LLVM 9 documentation</title>
    <link rel="stylesheet" href="../_static/llvm-theme.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
    <script src="../_static/jquery.js"></script>
    <script src="../_static/underscore.js"></script>
    <script src="../_static/doctools.js"></script>
    <script src="../_static/language_data.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="Getting Started with the LLVM System" href="../GettingStarted.html" />
    <link rel="prev" title="llvm-exegesis - LLVM Machine Instruction Benchmark" href="llvm-exegesis.html" />
<style type="text/css">
  table.right { float: right; margin-left: 20px; }
  table.right td { border: 1px solid #ccc; }
</style>

  </head><body>
<div class="logo">
  <a href="../index.html">
    <img src="../_static/logo.png"
         alt="LLVM Logo" width="250" height="88"/></a>
</div>

    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../GettingStarted.html" title="Getting Started with the LLVM System"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="llvm-exegesis.html" title="llvm-exegesis - LLVM Machine Instruction Benchmark"
             accesskey="P">previous</a> |</li>
  <li><a href="http://llvm.org/">LLVM Home</a>&nbsp;|&nbsp;</li>
  <li><a href="../index.html">Documentation</a>&raquo;</li>

          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">LLVM Command Guide</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">llvm-pdbutil - PDB File forensics and diagnostics</a></li> 
      </ul>
    </div>


    <div class="document">
      <div class="documentwrapper">
          <div class="body" role="main">
            
  <div class="section" id="llvm-pdbutil-pdb-file-forensics-and-diagnostics">
<h1>llvm-pdbutil - PDB File forensics and diagnostics<a class="headerlink" href="#llvm-pdbutil-pdb-file-forensics-and-diagnostics" title="Permalink to this headline">¶</a></h1>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><p><a class="reference internal" href="#synopsis" id="id12">Synopsis</a></p></li>
<li><p><a class="reference internal" href="#description" id="id13">Description</a></p></li>
<li><p><a class="reference internal" href="#subcommands" id="id14">Subcommands</a></p>
<ul>
<li><p><a class="reference internal" href="#pretty" id="id15">pretty</a></p>
<ul>
<li><p><a class="reference internal" href="#summary" id="id16">Summary</a></p></li>
<li><p><a class="reference internal" href="#options" id="id17">Options</a></p>
<ul>
<li><p><a class="reference internal" href="#filtering-and-sorting-options" id="id18">Filtering and Sorting Options</a></p></li>
<li><p><a class="reference internal" href="#symbol-type-options" id="id19">Symbol Type Options</a></p></li>
<li><p><a class="reference internal" href="#other-options" id="id20">Other Options</a></p></li>
</ul>
</li>
</ul>
</li>
<li><p><a class="reference internal" href="#dump" id="id21">dump</a></p>
<ul>
<li><p><a class="reference internal" href="#id1" id="id22">Summary</a></p></li>
<li><p><a class="reference internal" href="#id2" id="id23">Options</a></p>
<ul>
<li><p><a class="reference internal" href="#msf-container-options" id="id24">MSF Container Options</a></p></li>
<li><p><a class="reference internal" href="#module-file-options" id="id25">Module &amp; File Options</a></p></li>
<li><p><a class="reference internal" href="#symbol-options" id="id26">Symbol Options</a></p></li>
<li><p><a class="reference internal" href="#type-record-options" id="id27">Type Record Options</a></p></li>
<li><p><a class="reference internal" href="#miscellaneous-options" id="id28">Miscellaneous Options</a></p></li>
</ul>
</li>
</ul>
</li>
<li><p><a class="reference internal" href="#bytes" id="id29">bytes</a></p>
<ul>
<li><p><a class="reference internal" href="#id3" id="id30">Summary</a></p></li>
<li><p><a class="reference internal" href="#id4" id="id31">Options</a></p>
<ul>
<li><p><a class="reference internal" href="#msf-file-options" id="id32">MSF File Options</a></p></li>
<li><p><a class="reference internal" href="#pdb-stream-options" id="id33">PDB Stream Options</a></p></li>
<li><p><a class="reference internal" href="#dbi-stream-options" id="id34">DBI Stream Options</a></p></li>
<li><p><a class="reference internal" href="#module-options" id="id35">Module Options</a></p></li>
<li><p><a class="reference internal" href="#id5" id="id36">Type Record Options</a></p></li>
</ul>
</li>
</ul>
</li>
<li><p><a class="reference internal" href="#pdb2yaml" id="id37">pdb2yaml</a></p>
<ul>
<li><p><a class="reference internal" href="#id6" id="id38">Summary</a></p></li>
<li><p><a class="reference internal" href="#id7" id="id39">Options</a></p></li>
</ul>
</li>
<li><p><a class="reference internal" href="#yaml2pdb" id="id40">yaml2pdb</a></p>
<ul>
<li><p><a class="reference internal" href="#id8" id="id41">Summary</a></p></li>
<li><p><a class="reference internal" href="#id9" id="id42">Options</a></p></li>
</ul>
</li>
<li><p><a class="reference internal" href="#merge" id="id43">merge</a></p>
<ul>
<li><p><a class="reference internal" href="#id10" id="id44">Summary</a></p></li>
<li><p><a class="reference internal" href="#id11" id="id45">Options</a></p></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="synopsis">
<h2><a class="toc-backref" href="#id12">Synopsis</a><a class="headerlink" href="#synopsis" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">llvm-pdbutil</strong> [<em>subcommand</em>] [<em>options</em>]</p>
</div>
<div class="section" id="description">
<h2><a class="toc-backref" href="#id13">Description</a><a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p>Display types, symbols, CodeView records, and other information from a
PDB file, as well as manipulate and create PDB files.  <strong class="program">llvm-pdbutil</strong>
is normally used by FileCheck-based tests to test LLVM’s PDB reading and
writing functionality, but can also be used for general PDB file investigation
and forensics, or as a replacement for cvdump.</p>
</div>
<div class="section" id="subcommands">
<h2><a class="toc-backref" href="#id14">Subcommands</a><a class="headerlink" href="#subcommands" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">llvm-pdbutil</strong> is separated into several subcommands each tailored to
a different purpose.  A brief summary of each command follows, with more detail
in the sections that follow.</p>
<blockquote>
<div><ul class="simple">
<li><p><a class="reference internal" href="#pretty-subcommand"><span class="std std-ref">pretty</span></a> - Dump symbol and type information in a format that
tries to look as much like the original source code as possible.</p></li>
<li><p><a class="reference internal" href="#dump-subcommand"><span class="std std-ref">dump</span></a> - Dump low level types and structures from the PDB
file, including CodeView records, hash tables, PDB streams, etc.</p></li>
<li><p><a class="reference internal" href="#bytes-subcommand"><span class="std std-ref">bytes</span></a> - Dump data from the PDB file’s streams, records,
types, symbols, etc as raw bytes.</p></li>
<li><p><a class="reference internal" href="#yaml2pdb-subcommand"><span class="std std-ref">yaml2pdb</span></a> - Given a yaml description of a PDB file, produce
a valid PDB file that matches that description.</p></li>
<li><p><a class="reference internal" href="#pdb2yaml-subcommand"><span class="std std-ref">pdb2yaml</span></a> - For a given PDB file, produce a YAML
description of some or all of the file in a way that the PDB can be
reconstructed.</p></li>
<li><p><a class="reference internal" href="#merge-subcommand"><span class="std std-ref">merge</span></a> - Given two PDBs, produce a third PDB that is the
result of merging the two input PDBs.</p></li>
</ul>
</div></blockquote>
<div class="section" id="pretty">
<span id="pretty-subcommand"></span><h3><a class="toc-backref" href="#id15">pretty</a><a class="headerlink" href="#pretty" title="Permalink to this headline">¶</a></h3>
<div class="admonition important">
<p class="admonition-title">Important</p>
<p>The <strong>pretty</strong> subcommand is built on the Windows DIA SDK, and as such is not
supported on non-Windows platforms.</p>
</div>
<p>USAGE: <strong class="program">llvm-pdbutil</strong> pretty [<em>options</em>] &lt;input PDB file&gt;</p>
<div class="section" id="summary">
<h4><a class="toc-backref" href="#id16">Summary</a><a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h4>
<p>The <em>pretty</em> subcommand displays a very high level representation of your
program’s debug info.  Since it is built on the Windows DIA SDK which is the
standard API that Windows tools and debuggers query debug information, it
presents a more authoritative view of how a debugger is going to interpret your
debug information than a mode which displays low-level CodeView records.</p>
</div>
<div class="section" id="options">
<h4><a class="toc-backref" href="#id17">Options</a><a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h4>
<div class="section" id="filtering-and-sorting-options">
<h5><a class="toc-backref" href="#id18">Filtering and Sorting Options</a><a class="headerlink" href="#filtering-and-sorting-options" title="Permalink to this headline">¶</a></h5>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p><em>exclude</em> filters take priority over <em>include</em> filters.  So if a filter
matches both an include and an exclude rule, then it is excluded.</p>
</div>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-exclude-compilands">
<code class="sig-name descname">-exclude-compilands</code><code class="sig-prename descclassname">=&lt;string&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-exclude-compilands" title="Permalink to this definition">¶</a></dt>
<dd><p>When dumping compilands, compiland source-file contributions, or per-compiland
symbols, this option instructs <strong>llvm-pdbutil</strong> to omit any compilands that
match the specified regular expression.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-exclude-symbols">
<code class="sig-name descname">-exclude-symbols</code><code class="sig-prename descclassname">=&lt;string&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-exclude-symbols" title="Permalink to this definition">¶</a></dt>
<dd><p>When dumping global, public, or per-compiland symbols, this option instructs
<strong>llvm-pdbutil</strong> to omit any symbols that match the specified regular
expression.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-exclude-types">
<code class="sig-name descname">-exclude-types</code><code class="sig-prename descclassname">=&lt;string&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-exclude-types" title="Permalink to this definition">¶</a></dt>
<dd><p>When dumping types, this option instructs <strong>llvm-pdbutil</strong> to omit any types
that match the specified regular expression.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-include-compilands">
<code class="sig-name descname">-include-compilands</code><code class="sig-prename descclassname">=&lt;string&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-include-compilands" title="Permalink to this definition">¶</a></dt>
<dd><p>When dumping compilands, compiland source-file contributions, or per-compiland
symbols, limit the initial search to only those compilands that match the
specified regular expression.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-include-symbols">
<code class="sig-name descname">-include-symbols</code><code class="sig-prename descclassname">=&lt;string&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-include-symbols" title="Permalink to this definition">¶</a></dt>
<dd><p>When dumping global, public, or per-compiland symbols, limit the initial
search to only those symbols that match the specified regular expression.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-include-types">
<code class="sig-name descname">-include-types</code><code class="sig-prename descclassname">=&lt;string&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-include-types" title="Permalink to this definition">¶</a></dt>
<dd><p>When dumping types, limit the initial search to only those types that match
the specified regular expression.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-min-class-padding">
<code class="sig-name descname">-min-class-padding</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-min-class-padding" title="Permalink to this definition">¶</a></dt>
<dd><p>Only display types that have at least the specified amount of alignment
padding, accounting for padding in base classes and aggregate field members.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-min-class-padding-imm">
<code class="sig-name descname">-min-class-padding-imm</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-min-class-padding-imm" title="Permalink to this definition">¶</a></dt>
<dd><p>Only display types that have at least the specified amount of alignment
padding, ignoring padding in base classes and aggregate field members.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-min-type-size">
<code class="sig-name descname">-min-type-size</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-min-type-size" title="Permalink to this definition">¶</a></dt>
<dd><p>Only display types T where sizeof(T) is greater than or equal to the specified
amount.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-no-compiler-generated">
<code class="sig-name descname">-no-compiler-generated</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-no-compiler-generated" title="Permalink to this definition">¶</a></dt>
<dd><p>Don’t show compiler generated types and symbols</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-no-enum-definitions">
<code class="sig-name descname">-no-enum-definitions</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-no-enum-definitions" title="Permalink to this definition">¶</a></dt>
<dd><p>When dumping an enum, don’t show the full enum (e.g. the individual enumerator
values).</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-no-system-libs">
<code class="sig-name descname">-no-system-libs</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-no-system-libs" title="Permalink to this definition">¶</a></dt>
<dd><p>Don’t show symbols from system libraries</p>
</dd></dl>

</div>
<div class="section" id="symbol-type-options">
<h5><a class="toc-backref" href="#id19">Symbol Type Options</a><a class="headerlink" href="#symbol-type-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-all">
<code class="sig-name descname">-all</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-all" title="Permalink to this definition">¶</a></dt>
<dd><p>Implies all other options in this category.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-class-definitions">
<code class="sig-name descname">-class-definitions</code><code class="sig-prename descclassname">=&lt;format&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-class-definitions" title="Permalink to this definition">¶</a></dt>
<dd><p>Displays class definitions in the specified format.</p>
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>=all      - Display all class members including data, constants, typedefs, functions, etc (default)
=layout   - Only display members that contribute to class size.
=none     - Don&#39;t display class definitions (e.g. only display the name and base list)
</pre></div>
</div>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-class-order">
<code class="sig-name descname">-class-order</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-class-order" title="Permalink to this definition">¶</a></dt>
<dd><p>Displays classes in the specified order.</p>
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>=none            - Undefined / no particular sort order (default)
=name            - Sort classes by name
=size            - Sort classes by size
=padding         - Sort classes by amount of padding
=padding-pct     - Sort classes by percentage of space consumed by padding
=padding-imm     - Sort classes by amount of immediate padding
=padding-pct-imm - Sort classes by percentage of space consumed by immediate padding
</pre></div>
</div>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-class-recurse-depth">
<code class="sig-name descname">-class-recurse-depth</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-class-recurse-depth" title="Permalink to this definition">¶</a></dt>
<dd><p>When dumping class definitions, stop after recursing the specified number of times.  The
default is 0, which is no limit.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-classes">
<code class="sig-name descname">-classes</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-classes" title="Permalink to this definition">¶</a></dt>
<dd><p>Display classes</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-compilands">
<code class="sig-name descname">-compilands</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-compilands" title="Permalink to this definition">¶</a></dt>
<dd><p>Display compilands (e.g. object files)</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-enums">
<code class="sig-name descname">-enums</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-enums" title="Permalink to this definition">¶</a></dt>
<dd><p>Display enums</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-externals">
<code class="sig-name descname">-externals</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-externals" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump external (e.g. exported) symbols</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-globals">
<code class="sig-name descname">-globals</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-globals" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump global symbols</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-lines">
<code class="sig-name descname">-lines</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-lines" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the mappings between source lines and code addresses.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-module-syms">
<code class="sig-name descname">-module-syms</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-module-syms" title="Permalink to this definition">¶</a></dt>
<dd><p>Display symbols (variables, functions, etc) for each compiland</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-sym-types">
<code class="sig-name descname">-sym-types</code><code class="sig-prename descclassname">=&lt;types&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-sym-types" title="Permalink to this definition">¶</a></dt>
<dd><p>Type of symbols to dump when -globals, -externals, or -module-syms is
specified. (default all)</p>
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>=thunks - Display thunk symbols
=data   - Display data symbols
=funcs  - Display function symbols
=all    - Display all symbols (default)
</pre></div>
</div>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-symbol-order">
<code class="sig-name descname">-symbol-order</code><code class="sig-prename descclassname">=&lt;order&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-symbol-order" title="Permalink to this definition">¶</a></dt>
<dd><p>For symbols dumped via the -module-syms, -globals, or -externals options, sort
the results in specified order.</p>
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>=none - Undefined / no particular sort order
=name - Sort symbols by name
=size - Sort symbols by size
</pre></div>
</div>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-typedefs">
<code class="sig-name descname">-typedefs</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-typedefs" title="Permalink to this definition">¶</a></dt>
<dd><p>Display typedef types</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-types">
<code class="sig-name descname">-types</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-types" title="Permalink to this definition">¶</a></dt>
<dd><p>Display all types (implies -classes, -enums, -typedefs)</p>
</dd></dl>

</div>
<div class="section" id="other-options">
<h5><a class="toc-backref" href="#id20">Other Options</a><a class="headerlink" href="#other-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-color-output">
<code class="sig-name descname">-color-output</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-color-output" title="Permalink to this definition">¶</a></dt>
<dd><p>Force color output on or off.  By default, color if used if outputting to a
terminal.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-pretty-load-address">
<code class="sig-name descname">-load-address</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-pretty-load-address" title="Permalink to this definition">¶</a></dt>
<dd><p>When displaying relative virtual addresses, assume the process is loaded at the
given address and display what would be the absolute address.</p>
</dd></dl>

</div>
</div>
</div>
<div class="section" id="dump">
<span id="dump-subcommand"></span><h3><a class="toc-backref" href="#id21">dump</a><a class="headerlink" href="#dump" title="Permalink to this headline">¶</a></h3>
<p>USAGE: <strong class="program">llvm-pdbutil</strong> dump [<em>options</em>] &lt;input PDB file&gt;</p>
<div class="section" id="id1">
<h4><a class="toc-backref" href="#id22">Summary</a><a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h4>
<p>The <strong>dump</strong> subcommand displays low level information about the structure of a
PDB file.  It is used heavily by LLVM’s testing infrastructure, but can also be
used for PDB forensics.  It serves a role similar to that of Microsoft’s
<cite>cvdump</cite> tool.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The <strong>dump</strong> subcommand exposes internal details of the file format.  As
such, the reader should be familiar with <a class="reference internal" href="../PDB/index.html"><span class="doc">The PDB File Format</span></a> before using this
command.</p>
</div>
</div>
<div class="section" id="id2">
<h4><a class="toc-backref" href="#id23">Options</a><a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h4>
<div class="section" id="msf-container-options">
<h5><a class="toc-backref" href="#id24">MSF Container Options</a><a class="headerlink" href="#msf-container-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-streams">
<code class="sig-name descname">-streams</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-streams" title="Permalink to this definition">¶</a></dt>
<dd><p>dump a summary of all of the streams in the PDB file.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-stream-blocks">
<code class="sig-name descname">-stream-blocks</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-stream-blocks" title="Permalink to this definition">¶</a></dt>
<dd><p>In conjunction with <a class="reference internal" href="#cmdoption-llvm-pdbutil-dump-streams"><code class="xref std std-option docutils literal notranslate"><span class="pre">-streams</span></code></a>, add information to the output about
what blocks the specified stream occupies.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-summary">
<code class="sig-name descname">-summary</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-summary" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump MSF and PDB header information.</p>
</dd></dl>

</div>
<div class="section" id="module-file-options">
<h5><a class="toc-backref" href="#id25">Module &amp; File Options</a><a class="headerlink" href="#module-file-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-modi">
<code class="sig-name descname">-modi</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-modi" title="Permalink to this definition">¶</a></dt>
<dd><p>For all options that dump information from each module/compiland, limit to
the specified module.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-files">
<code class="sig-name descname">-files</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-files" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the source files that contribute to each displayed module.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-il">
<code class="sig-name descname">-il</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-il" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump inlinee line information (DEBUG_S_INLINEELINES CodeView subsection)</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-l">
<code class="sig-name descname">-l</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-l" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump line information (DEBUG_S_LINES CodeView subsection)</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-modules">
<code class="sig-name descname">-modules</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-modules" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump compiland information</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-xme">
<code class="sig-name descname">-xme</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-xme" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump cross module exports (DEBUG_S_CROSSSCOPEEXPORTS CodeView subsection)</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-xmi">
<code class="sig-name descname">-xmi</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-xmi" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump cross module imports (DEBUG_S_CROSSSCOPEIMPORTS CodeView subsection)</p>
</dd></dl>

</div>
<div class="section" id="symbol-options">
<h5><a class="toc-backref" href="#id26">Symbol Options</a><a class="headerlink" href="#symbol-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-globals">
<code class="sig-name descname">-globals</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-globals" title="Permalink to this definition">¶</a></dt>
<dd><p>dump global symbol records</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-global-extras">
<code class="sig-name descname">-global-extras</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-global-extras" title="Permalink to this definition">¶</a></dt>
<dd><p>dump additional information about the globals, such as hash buckets and hash
values.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-publics">
<code class="sig-name descname">-publics</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-publics" title="Permalink to this definition">¶</a></dt>
<dd><p>dump public symbol records</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-public-extras">
<code class="sig-name descname">-public-extras</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-public-extras" title="Permalink to this definition">¶</a></dt>
<dd><p>dump additional information about the publics, such as hash buckets and hash
values.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-symbols">
<code class="sig-name descname">-symbols</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-symbols" title="Permalink to this definition">¶</a></dt>
<dd><p>dump symbols (functions, variables, etc) for each module dumped.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-sym-data">
<code class="sig-name descname">-sym-data</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-sym-data" title="Permalink to this definition">¶</a></dt>
<dd><p>For each symbol record dumped as a result of the <a class="reference internal" href="#cmdoption-llvm-pdbutil-dump-symbols"><code class="xref std std-option docutils literal notranslate"><span class="pre">-symbols</span></code></a> option,
display the full bytes of the record in binary as well.</p>
</dd></dl>

</div>
<div class="section" id="type-record-options">
<h5><a class="toc-backref" href="#id27">Type Record Options</a><a class="headerlink" href="#type-record-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-types">
<code class="sig-name descname">-types</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-types" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump CodeView type records from TPI stream</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-type-extras">
<code class="sig-name descname">-type-extras</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-type-extras" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump additional information from the TPI stream, such as hashes and the type
index offsets array.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-type-data">
<code class="sig-name descname">-type-data</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-type-data" title="Permalink to this definition">¶</a></dt>
<dd><p>For each type record dumped, display the full bytes of the record in binary as
well.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-type-index">
<code class="sig-name descname">-type-index</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-type-index" title="Permalink to this definition">¶</a></dt>
<dd><p>Only dump types with the specified type index.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-ids">
<code class="sig-name descname">-ids</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-ids" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump CodeView type records from IPI stream.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-id-extras">
<code class="sig-name descname">-id-extras</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-id-extras" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump additional information from the IPI stream, such as hashes and the type
index offsets array.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-id-data">
<code class="sig-name descname">-id-data</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-id-data" title="Permalink to this definition">¶</a></dt>
<dd><p>For each ID record dumped, display the full bytes of the record in binary as
well.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-id-index">
<code class="sig-name descname">-id-index</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-id-index" title="Permalink to this definition">¶</a></dt>
<dd><p>only dump ID records with the specified hexadecimal type index.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-dependents">
<code class="sig-name descname">-dependents</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-dependents" title="Permalink to this definition">¶</a></dt>
<dd><p>When used in conjunction with <a class="reference internal" href="#cmdoption-llvm-pdbutil-dump-type-index"><code class="xref std std-option docutils literal notranslate"><span class="pre">-type-index</span></code></a> or <a class="reference internal" href="#cmdoption-llvm-pdbutil-dump-id-index"><code class="xref std std-option docutils literal notranslate"><span class="pre">-id-index</span></code></a>,
dumps the entire dependency graph for the specified index instead of just the
single record with the specified index.  For example, if type index 0x4000 is
a function whose return type has index 0x3000, and you specify
<cite>-dependents=0x4000</cite>, then this would dump both records (as well as any other
dependents in the tree).</p>
</dd></dl>

</div>
<div class="section" id="miscellaneous-options">
<h5><a class="toc-backref" href="#id28">Miscellaneous Options</a><a class="headerlink" href="#miscellaneous-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-all">
<code class="sig-name descname">-all</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-all" title="Permalink to this definition">¶</a></dt>
<dd><p>Implies most other options.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-section-contribs">
<code class="sig-name descname">-section-contribs</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-section-contribs" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump section contributions.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-section-headers">
<code class="sig-name descname">-section-headers</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-section-headers" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump image section headers.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-section-map">
<code class="sig-name descname">-section-map</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-section-map" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump section map.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-dump-string-table">
<code class="sig-name descname">-string-table</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-dump-string-table" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump PDB string table.</p>
</dd></dl>

</div>
</div>
</div>
<div class="section" id="bytes">
<span id="bytes-subcommand"></span><h3><a class="toc-backref" href="#id29">bytes</a><a class="headerlink" href="#bytes" title="Permalink to this headline">¶</a></h3>
<p>USAGE: <strong class="program">llvm-pdbutil</strong> bytes [<em>options</em>] &lt;input PDB file&gt;</p>
<div class="section" id="id3">
<h4><a class="toc-backref" href="#id30">Summary</a><a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h4>
<p>Like the <strong>dump</strong> subcommand, the <strong>bytes</strong> subcommand displays low level
information about the structure of a PDB file, but it is used for even deeper
forensics.  The <strong>bytes</strong> subcommand finds various structures in a PDB file
based on the command line options specified, and dumps them in hex.  Someone
working on support for emitting PDBs would use this heavily, for example, to
compare one PDB against another PDB to ensure byte-for-byte compatibility.  It
is not enough to simply compare the bytes of an entire file, or an entire stream
because it’s perfectly fine for the same structure to exist at different
locations in two different PDBs, and “finding” the structure is half the battle.</p>
</div>
<div class="section" id="id4">
<h4><a class="toc-backref" href="#id31">Options</a><a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h4>
<div class="section" id="msf-file-options">
<h5><a class="toc-backref" href="#id32">MSF File Options</a><a class="headerlink" href="#msf-file-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-block-range">
<code class="sig-name descname">-block-range</code><code class="sig-prename descclassname">=&lt;start[-end]&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-block-range" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump binary data from specified range of MSF file blocks.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-byte-range">
<code class="sig-name descname">-byte-range</code><code class="sig-prename descclassname">=&lt;start[-end]&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-byte-range" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump binary data from specified range of bytes in the file.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-fpm">
<code class="sig-name descname">-fpm</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-fpm" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the MSF free page map.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-stream-data">
<code class="sig-name descname">-stream-data</code><code class="sig-prename descclassname">=&lt;string&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-stream-data" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump binary data from the specified streams.  Format is SN[:Start][&#64;Size].
For example, <cite>-stream-data=7:3&#64;12</cite> dumps 12 bytes from stream 7, starting
at offset 3 in the stream.</p>
</dd></dl>

</div>
<div class="section" id="pdb-stream-options">
<h5><a class="toc-backref" href="#id33">PDB Stream Options</a><a class="headerlink" href="#pdb-stream-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-name-map">
<code class="sig-name descname">-name-map</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-name-map" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump bytes of PDB Name Map</p>
</dd></dl>

</div>
<div class="section" id="dbi-stream-options">
<h5><a class="toc-backref" href="#id34">DBI Stream Options</a><a class="headerlink" href="#dbi-stream-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-ec">
<code class="sig-name descname">-ec</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-ec" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the edit and continue map substream of the DBI stream.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-files">
<code class="sig-name descname">-files</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-files" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the file info substream of the DBI stream.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-modi">
<code class="sig-name descname">-modi</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-modi" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the modi substream of the DBI stream.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-sc">
<code class="sig-name descname">-sc</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-sc" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump section contributions substream of the DBI stream.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-sm">
<code class="sig-name descname">-sm</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-sm" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the section map from the DBI stream.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-type-server">
<code class="sig-name descname">-type-server</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-type-server" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the type server map from the DBI stream.</p>
</dd></dl>

</div>
<div class="section" id="module-options">
<h5><a class="toc-backref" href="#id35">Module Options</a><a class="headerlink" href="#module-options" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-mod">
<code class="sig-name descname">-mod</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-mod" title="Permalink to this definition">¶</a></dt>
<dd><p>Limit all options in this category to the specified module index.  By default,
options in this category will dump bytes from all modules.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-chunks">
<code class="sig-name descname">-chunks</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-chunks" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the bytes of each module’s C13 debug subsection.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-split-chunks">
<code class="sig-name descname">-split-chunks</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-split-chunks" title="Permalink to this definition">¶</a></dt>
<dd><p>When specified with <a class="reference internal" href="#cmdoption-llvm-pdbutil-bytes-chunks"><code class="xref std std-option docutils literal notranslate"><span class="pre">-chunks</span></code></a>, split the C13 debug subsection into a
separate chunk for each subsection type, and dump them separately.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-syms">
<code class="sig-name descname">-syms</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-syms" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the symbol record substream from each module.</p>
</dd></dl>

</div>
<div class="section" id="id5">
<h5><a class="toc-backref" href="#id36">Type Record Options</a><a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h5>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-id">
<code class="sig-name descname">-id</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-id" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the record from the IPI stream with the given type index.</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-bytes-type">
<code class="sig-name descname">-type</code><code class="sig-prename descclassname">=&lt;uint&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-bytes-type" title="Permalink to this definition">¶</a></dt>
<dd><p>Dump the record from the TPI stream with the given type index.</p>
</dd></dl>

</div>
</div>
</div>
<div class="section" id="pdb2yaml">
<span id="pdb2yaml-subcommand"></span><h3><a class="toc-backref" href="#id37">pdb2yaml</a><a class="headerlink" href="#pdb2yaml" title="Permalink to this headline">¶</a></h3>
<p>USAGE: <strong class="program">llvm-pdbutil</strong> pdb2yaml [<em>options</em>] &lt;input PDB file&gt;</p>
<div class="section" id="id6">
<h4><a class="toc-backref" href="#id38">Summary</a><a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h4>
</div>
<div class="section" id="id7">
<h4><a class="toc-backref" href="#id39">Options</a><a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h4>
</div>
</div>
<div class="section" id="yaml2pdb">
<span id="yaml2pdb-subcommand"></span><h3><a class="toc-backref" href="#id40">yaml2pdb</a><a class="headerlink" href="#yaml2pdb" title="Permalink to this headline">¶</a></h3>
<p>USAGE: <strong class="program">llvm-pdbutil</strong> yaml2pdb [<em>options</em>] &lt;input YAML file&gt;</p>
<div class="section" id="id8">
<h4><a class="toc-backref" href="#id41">Summary</a><a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h4>
<p>Generate a PDB file from a YAML description.  The YAML syntax is not described
here.  Instead, use <a class="reference internal" href="#pdb2yaml-subcommand"><span class="std std-ref">llvm-pdbutil pdb2yaml</span></a> and
examine the output for an example starting point.</p>
</div>
<div class="section" id="id9">
<h4><a class="toc-backref" href="#id42">Options</a><a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h4>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-yaml2pdb-pdb">
<code class="sig-name descname">-pdb</code><code class="sig-prename descclassname">=&lt;file-name&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-yaml2pdb-pdb" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<p>Write the resulting PDB to the specified file.</p>
</div>
</div>
<div class="section" id="merge">
<span id="merge-subcommand"></span><h3><a class="toc-backref" href="#id43">merge</a><a class="headerlink" href="#merge" title="Permalink to this headline">¶</a></h3>
<p>USAGE: <strong class="program">llvm-pdbutil</strong> merge [<em>options</em>] &lt;input PDB file 1&gt; &lt;input PDB file 2&gt;</p>
<div class="section" id="id10">
<h4><a class="toc-backref" href="#id44">Summary</a><a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h4>
<p>Merge two PDB files into a single file.</p>
</div>
<div class="section" id="id11">
<h4><a class="toc-backref" href="#id45">Options</a><a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h4>
<dl class="std option">
<dt id="cmdoption-llvm-pdbutil-merge-pdb">
<code class="sig-name descname">-pdb</code><code class="sig-prename descclassname">=&lt;file-name&gt;</code><a class="headerlink" href="#cmdoption-llvm-pdbutil-merge-pdb" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<p>Write the resulting PDB to the specified file.</p>
</div>
</div>
</div>
</div>


            <div class="clearer"></div>
          </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../GettingStarted.html" title="Getting Started with the LLVM System"
             >next</a> |</li>
        <li class="right" >
          <a href="llvm-exegesis.html" title="llvm-exegesis - LLVM Machine Instruction Benchmark"
             >previous</a> |</li>
  <li><a href="http://llvm.org/">LLVM Home</a>&nbsp;|&nbsp;</li>
  <li><a href="../index.html">Documentation</a>&raquo;</li>

          <li class="nav-item nav-item-1"><a href="index.html" >LLVM Command Guide</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">llvm-pdbutil - PDB File forensics and diagnostics</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2003-2020, LLVM Project.
      Last updated on 2020-09-20.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.2.1.
    </div>
  </body>
</html>